package net.aiion.weave.impl.bytecode.events;

import net.aiion.weave.spi.bytecode.BytecodeVisitor;
import net.aiion.weave.spi.bytecode.events.AnnotationArrayValueBytecodeEvent;

public class AnnotationArrayValueBytecodeEventImpl extends BytecodeEventImpl implements
    AnnotationArrayValueBytecodeEvent
{
    private String name;

    public AnnotationArrayValueBytecodeEventImpl(final String aName) {
        name = aName;
    }

    @Override
    public int getType() {
        return ANNOTATION_ARRAY_VALUE;
    }

    @Override
    public void setName(final String aName) {
        name = aName;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public BytecodeVisitor acceptBytecodeVisitor(final BytecodeVisitor aBytecodeVisitor) {
        return aBytecodeVisitor.asBytecodeAnnotationVisitor().visitAnnotationArrayValue(this);
    }
}
